package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    Employee selectByName(String username);

    List<Employee> list(EmployeeQueryObject qo);

    Employee selectUser(@Param("username") String username, @Param("password") String password);

    void batchDelete(@Param("ids") Long[] ids);

    List<Employee> selectSeller(List<String> roleList);
}